import { axios as request } from '@/utils/request'

const orderAPI = {
  getStatistics: '/order/hTOrder/getStatistics',
  getSalesStatistics: '/order/hTOrder/getSalesStatistics'
}

export function getStatisticsRequest(parameters) {
  return request({
    url: orderAPI.getStatistics,
    method: 'get',
    data: parameters
  })
}

export function getSalesStatisticsRequest(parameters) {
  return request({
    url: orderAPI.getSalesStatistics,
    method: 'get',
    data: parameters
  })
}

